#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H

#include <QWidget>
#include <QPushButton>
#include <QLabel>
class MyPushButton : public QPushButton
{
    Q_OBJECT
public:
    explicit MyPushButton(QWidget *parent = nullptr);
    MyPushButton(const QString& normalImg,const QString& pressImg = "");

    QString normalImg;
    QString pressImg;
    void mousePressEvent(QMouseEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);

    void addLabel();
    void setLabelText(QString level);



signals:

public:
    void zoomup();
    void zoomdown();
    QLabel * label;//显示关卡数
};

#endif // MYPUSHBUTTON_H
